<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CAD-Tool: object_2d.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CAD-Tool
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">object_2d.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="object__2d_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef OBJECT_2D_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define OBJECT_2D_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="structs_8h.html">structs.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classobject__2d.html">   11</a></span>&#160;<span class="keyword">class </span><a class="code" href="classobject__2d.html">object_2d</a>{</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;        <span class="comment">// Used vector for vertices as in our algorithm there is no need to delete a vertex</span></div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classobject__2d.html#aedcad81ef4cdb308ffade7bcf7de4cc2">   14</a></span>&#160;        std::vector&lt;vertex_2d&gt; <a class="code" href="classobject__2d.html#aedcad81ef4cdb308ffade7bcf7de4cc2">T_vertices</a>; </div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classobject__2d.html#aa12b4ac9f646748a83b22c7a81ff1b7c">   15</a></span>&#160;        std::vector&lt;vertex_2d&gt; <a class="code" href="classobject__2d.html#aa12b4ac9f646748a83b22c7a81ff1b7c">F_vertices</a>; </div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classobject__2d.html#a722b0505e408b8864809a7ae55c86df4">   16</a></span>&#160;        std::vector&lt;vertex_2d&gt; <a class="code" href="classobject__2d.html#a722b0505e408b8864809a7ae55c86df4">S_vertices</a>; </div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classobject__2d.html#a1543063eb017187a7582821d1ec07faf">   17</a></span>&#160;        std::vector&lt;edge_2d&gt; <a class="code" href="classobject__2d.html#a1543063eb017187a7582821d1ec07faf">T_edges</a>; </div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classobject__2d.html#abb23f1e7a00cef6deba5d997ff40a751">   18</a></span>&#160;        std::vector&lt;edge_2d&gt; <a class="code" href="classobject__2d.html#abb23f1e7a00cef6deba5d997ff40a751">F_edges</a>; </div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classobject__2d.html#ad13cc39539ebc9c5634ae59dea81e33c">   19</a></span>&#160;        std::vector&lt;edge_2d&gt; <a class="code" href="classobject__2d.html#ad13cc39539ebc9c5634ae59dea81e33c">S_edges</a>; </div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <a class="code" href="classobject__2d.html">object_2d</a>(std::vector&lt;vertex_2d&gt; T_vertices, std::vector&lt;vertex_2d&gt; F_vertices,</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;            std::vector&lt;vertex_2d&gt; S_vertices, std::vector&lt;edge_2d_v2v&gt; T_edges,</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;            std::vector&lt;edge_2d_v2v&gt; F_edges, std::vector&lt;edge_2d_v2v&gt; S_edges);</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <a class="code" href="classobject__2d.html">object_2d</a>(std::vector&lt;vertex_3d&gt; v3d_list,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;         std::vector&lt;edge_3d&gt; e3d_list, std::vector&lt; std::vector&lt;edge_3d&gt; &gt; surface_list);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordtype">void</span> add_T_vertex(<a class="code" href="classvertex__2d.html">vertex_2d</a> v);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordtype">void</span> add_F_vertex(<a class="code" href="classvertex__2d.html">vertex_2d</a> v);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordtype">void</span> add_S_vertex(<a class="code" href="classvertex__2d.html">vertex_2d</a> v);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordtype">void</span> add_T_edge(<a class="code" href="classedge__2d.html">edge_2d</a> e);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keywordtype">void</span> add_F_edge(<a class="code" href="classedge__2d.html">edge_2d</a> e);</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordtype">void</span> add_S_edge(<a class="code" href="classedge__2d.html">edge_2d</a> e);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        std::vector&lt;vertex_2d&gt; converter(<a class="code" href="classvertex__3d.html">vertex_3d</a> v);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        std::vector&lt;bool&gt; checker(<a class="code" href="classedge__3d.html">edge_3d</a> e);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;};</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="structs_8h_html"><div class="ttname"><a href="structs_8h.html">structs.h</a></div></div>
<div class="ttc" id="classedge__2d_html"><div class="ttname"><a href="classedge__2d.html">edge_2d</a></div><div class="ttdoc">class for an edge_2d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00038">structs.h:38</a></div></div>
<div class="ttc" id="classobject__2d_html_abb23f1e7a00cef6deba5d997ff40a751"><div class="ttname"><a href="classobject__2d.html#abb23f1e7a00cef6deba5d997ff40a751">object_2d::F_edges</a></div><div class="ttdeci">std::vector&lt; edge_2d &gt; F_edges</div><div class="ttdoc">vector of edges in front-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00018">object_2d.h:18</a></div></div>
<div class="ttc" id="classvertex__3d_html"><div class="ttname"><a href="classvertex__3d.html">vertex_3d</a></div><div class="ttdoc">class for a vertex_3d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00064">structs.h:64</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classobject__2d_html_a1543063eb017187a7582821d1ec07faf"><div class="ttname"><a href="classobject__2d.html#a1543063eb017187a7582821d1ec07faf">object_2d::T_edges</a></div><div class="ttdeci">std::vector&lt; edge_2d &gt; T_edges</div><div class="ttdoc">vector of edges in top-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00017">object_2d.h:17</a></div></div>
<div class="ttc" id="classobject__2d_html_ad13cc39539ebc9c5634ae59dea81e33c"><div class="ttname"><a href="classobject__2d.html#ad13cc39539ebc9c5634ae59dea81e33c">object_2d::S_edges</a></div><div class="ttdeci">std::vector&lt; edge_2d &gt; S_edges</div><div class="ttdoc">vector of edges in side-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00019">object_2d.h:19</a></div></div>
<div class="ttc" id="classobject__2d_html_aa12b4ac9f646748a83b22c7a81ff1b7c"><div class="ttname"><a href="classobject__2d.html#aa12b4ac9f646748a83b22c7a81ff1b7c">object_2d::F_vertices</a></div><div class="ttdeci">std::vector&lt; vertex_2d &gt; F_vertices</div><div class="ttdoc">vector of co-ordinates of vertices in front-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00015">object_2d.h:15</a></div></div>
<div class="ttc" id="classobject__2d_html"><div class="ttname"><a href="classobject__2d.html">object_2d</a></div><div class="ttdoc">representation of object_2d </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00011">object_2d.h:11</a></div></div>
<div class="ttc" id="classedge__3d_html"><div class="ttname"><a href="classedge__3d.html">edge_3d</a></div><div class="ttdoc">class for an edge_3d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00097">structs.h:97</a></div></div>
<div class="ttc" id="classobject__2d_html_a722b0505e408b8864809a7ae55c86df4"><div class="ttname"><a href="classobject__2d.html#a722b0505e408b8864809a7ae55c86df4">object_2d::S_vertices</a></div><div class="ttdeci">std::vector&lt; vertex_2d &gt; S_vertices</div><div class="ttdoc">vector of co-ordinates of vertices in side-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00016">object_2d.h:16</a></div></div>
<div class="ttc" id="classvertex__2d_html"><div class="ttname"><a href="classvertex__2d.html">vertex_2d</a></div><div class="ttdoc">class for a vertex_2d </div><div class="ttdef"><b>Definition:</b> <a href="structs_8h_source.html#l00010">structs.h:10</a></div></div>
<div class="ttc" id="classobject__2d_html_aedcad81ef4cdb308ffade7bcf7de4cc2"><div class="ttname"><a href="classobject__2d.html#aedcad81ef4cdb308ffade7bcf7de4cc2">object_2d::T_vertices</a></div><div class="ttdeci">std::vector&lt; vertex_2d &gt; T_vertices</div><div class="ttdoc">vector of co-ordinates of vertices in top-view </div><div class="ttdef"><b>Definition:</b> <a href="object__2d_8h_source.html#l00014">object_2d.h:14</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
